﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="func_new.aspx.cs" Inherits="AnyOffice.general.system.menu.func_new" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <script Language="JavaScript">
function CheckForm()
{
    if(document.form1.txtMenuId.value.length!=4 && document.form1.txtMenuId.value.length!=6)
   { alert("菜单项代码应为4位或6位数字！");
     return (false);
   }
   
    if(document.form1.txtFuncName.value=="")
   { alert("子菜单名称不能为空！");
     return (false);
   }   
   
    if(document.form1.txtFuncCode.value=="")
   { alert("子菜单模块路径不能为空！");
     return (false);
   }
   
    if(document.form1.txtFuncImg.value=="")
   { alert("子菜单图片名不能为空！");
     return (false);
   }
}
</script>
</head>
<body class="bodycolor" topmargin="5">
    <form id="form1" runat="server">
     <div class="main_div">
        <asp:Panel ID="pnlMain" runat="server">
        
    <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="tab_ti">新建子菜单项
    </td>
  </tr>
</table>
<table border="0" cellspacing="0" width="500" class="tab_pub" cellpadding="0" align="center" >
   <tr>
    <td nowrap class="ta_bg" width="120">子菜单项代码：</td>
    <td nowrap class="ta_txt">
        <input type="text" name="txtMenuId" class="BigInput" size="20" maxlength="50" value="00" id="txtMenuId" runat="server"><br>
        说明：此代码共分3段，每两位代表一级菜单，为4位或6位数字
    </td>
   </tr>
   <tr>
    <td nowrap class="ta_bg">子菜单名称：</td>
    <td nowrap class="ta_txt">
        <input type="text" name="txtFuncName" class="BigInput" size="20" maxlength="100" value="" id="txtFuncName" runat="server">&nbsp;
    </td>
   </tr>
   <tr>
    <td nowrap class="ta_bg">子菜单模块路径：</td>
    <td nowrap class="ta_txt">
        <input type="text" name="txtFuncCode" class="BigInput" size="40" value="" id="txtFuncCode" maxlength="100" runat="server">
    </td>
   </tr>
   <tr>
    <td nowrap class="ta_bg">子菜单图片名：</td>
    <td nowrap class="ta_txt">
        <input type="text" name="txtFuncImg" class="BigInput" size="20" maxlength="50" value="" id="txtFuncImg" runat="server">&nbsp;
    </td>
   </tr>
   <tr>
    <td class="ta_txt" colspan=2>
        <b>子菜单模块路径定义方式，应根据此菜单项的类型决定</b>：<br><br>
        <b>类型一</b>：如果此菜单下仍存在下级菜单，则填写@英文名称，格式如：@mail<br>
        <br>
        <b>类型二</b>：如果此菜单是挂接OA系统中的模块，则填写程序路径，格式如：email，则实际对应的路径是：OA安装目录/webroot/general/email<br>
        <br>
        <b>类型三</b>：如果此菜单是挂接外部的B/S结构的系统，则填写该系统网址，格式如：http://www.anyoffice.net，注意：请一定要以http://开头<br>
        <br>
        <b>类型四</b>：如果此菜单是挂接外部的C/S结构或单机版系统，则填写可执行文件路径，格式如：file://c:/abc.exe，注意：请一定要以file://开头，后面的程序路径用斜杠或反斜杠均可
        <br><br>
        <b>图片：</b>图片对应OA安装目录/webroot/images/menu/下gif图片，譬如图片填写email对应的图片是：OA安装目录/webroot/images/menu/email.gif
    </td>
   </tr>
   <tr>
    <td nowrap  class="bnt_con" colspan="2" align="center">
        <input type="submit" value="确 定" class="BigButton" onclick="return CheckForm();">
        <input type="button" value="返 回" class="BigButton" onclick="history.back();">
    </td>
</table>
</asp:Panel>
<asp:Literal ID="litMessage" runat="server"></asp:Literal>
</div>
    </form>
</body>
</html>
